explain with placeholders?
| От | Dan Sugalski |
|---|---|
| Тема | explain with placeholders? |
| Дата | |
| Msg-id | a06110408bd6370b91252@[10.0.1.2] обсуждение исходный текст |
| Ответы |
Re: explain with placeholders?
|
| Список | pgsql-general |
Is there any way to convince explain to go do its thing when given a
query with placeholders in it?
I'm trying to do some performance checking of some of the queries
built into a system I'm building. The SQL's all done with
placeholders, for safety and ease of twiddling, but EXPLAIN...
EXPLAIN doesn't like them. Trying throws an "ERROR: there is no
parameter $1" which is somewhat sub-optimal.
Any way, short of hand-replacing the placeholders with real values
(which makes me nervous since the optimizer may do things that
wouldn't be doable in the system when it was running), to get a
meaningful check on these things?
--
Dan
--------------------------------------it's like this-------------------
Dan Sugalski even samurai
dan@sidhe.org have teddy bears and even
teddy bears get drunk
В списке pgsql-general по дате отправления: